#ifndef CHATFRAME_H
#define CHATFRAME_H

#include <QDialog>
#include <QTcpServer>
#include <QTcpSocket>
#include <QMessageBox>
#include <QFileDialog> // 文件对话框
#include <QListWidget>
#include "msg.h"

namespace Ui {
class ChatFrame;
}

class ChatFrame : public QDialog
{
    Q_OBJECT

public:
    explicit ChatFrame(QTcpSocket * s,QString f,QString t,QWidget *parent = 0);
    ~ChatFrame();
    void setContent(const char *content);


private:
    Ui::ChatFrame *ui;
    QTcpSocket * socket = NULL;
    QString from;
    QString to;

private slots:
    void sendmsg();
};

#endif // CHATFRAME_H
